Skip to content

Render a window shadow on the floating chat input window - #331225

Closed
Megan Rogge (meganrogge) with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-window-shadow-rendering
Closed

Render a window shadow on the floating chat input window#331225
Megan Rogge (meganrogge) with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-window-shadow-rendering

Conversation

Copilot AI commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Description

The Omni chat input hosts its content in a frameless, transparent auxiliary window sized tightly to the input. With no chrome and no shadow, it doesn't read as a separate window and gets mistaken for an inline input box.

Since the window bounds hug the surface, a box-shadow alone would be clipped at the window edge. The fix reserves a transparent gutter around the surface and grows the window bounds by that gutter, so the shadow renders into the transparent band while the input keeps its exact content size.

  • media/chatInputWindow.css — introduce --omni-window-shadow-size: 16px, drive the surface margin / height calc from it (replacing the 1px stroke), and add box-shadow: 0 3px 10px 0 var(--vscode-widget-shadow, …) (matching the shadow token used by suggest/action widgets).
  • chatInputWindowService.ts — add CHAT_INPUT_WINDOW_SHADOW_SIZE = 16 (kept in sync with the CSS var); fitWindowToInput and _defaultBounds now pad width/height by 2 * shadow so the surface size is preserved and the shadow isn't clipped.

Pending-approval panel sizing and action-widget anchoring measure relative getBoundingClientRect()s, so the inset gutter is transparent to them.

Copilot AI balanced review requested due to automatic review settings August 17, 2026 16:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

@meganrogge Megan Rogge (meganrogge) added this to the 1.135.0 milestone Aug 17, 2026
Copilot AI linked an issue Aug 17, 2026 that may be closed by this pull request
Co-authored-by: meganrogge <29464607+meganrogge@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix rendering of window shadow in Electron Render a window shadow on the floating chat input window Aug 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Window does not look like a window

3 participants